package pl.edu.pw.ee.buildcity.entities;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import javax.persistence.Entity;

/**
 * @author Mateusz
 * @since 2010-02-28
 */
@Entity
public class SVNCommit extends SCMCommit {

	private long revision;

	public long getRevision() {
		return revision;
	}

	public SVNCommit withRevision(long revision) {
		this.revision = revision;
		return this;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE, false, SCMCommit.class);
	}
}
